﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliveryList.aspx.cs" Inherits="SalesManagement.Modules.Purchase.DeliveryList" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Toolbar ID="tbMain" runat="server">
        <Items>
            <ext:ToolbarSpacer />
            <ext:Button ID="btnAdd" runat="server" Text="Thêm mới" Icon="FolderAdd">
                <DirectEvents>
                    <Click OnEvent="btnAdd_Click" />
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="btnEdit" runat="server" Text="Hiệu chỉnh" Icon="FolderEdit">
                <DirectEvents>
                    <Click OnEvent="btnEdit_Click" />
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="btnDelete" runat="server" Text="Xóa" Icon="FolderDelete">
                <DirectEvents>
                    <Click OnEvent="btnDelete_Click" />
                </DirectEvents>
            </ext:Button>
        </Items>
    </ext:Toolbar>
    <ext:Viewport ID="ViewPort1" runat="server">
        <Items>
            <ext:BorderLayout ID="BorderLayout2" runat="server">
                <North>
                    <ext:Panel ID="Panel1" runat="server" Frame="true" Title="Phiếu xuất" Height="300"
                        Layout="FitLayout">
                        <Items>
                            <ext:FieldSet ID="FieldSet1" runat="server" Title="Tìm kiếm" AutoHeight="true" LabelWidth="75"
                                Layout="Form">
                                <Items>
                                    <ext:CompositeField ID="CompositeField1" FieldLabel="Từ ngày" runat="server" MsgTarget="Under"
                                        AnchorHorizontal="-20">
                                        <Items>
                                            <ext:DateField ID="DateField1" runat="server" Width="200" />
                                            <ext:DisplayField ID="DisplayField8" runat="server" Text="Đến ngày" />
                                            <ext:DateField ID="DateField2" runat="server" Width="200" />
                                        </Items>
                                    </ext:CompositeField>
                                    <ext:CompositeField ID="CompositeField2" FieldLabel="Số phiếu" runat="server" MsgTarget="Under"
                                        AnchorHorizontal="-20">
                                        <Items>
                                            <ext:ComboBox ID="ComboBox3" runat="server" Width="200" Editable="false" DataIndex="Title" />
                                            <ext:DisplayField ID="DisplayField1" runat="server" Text="Khách hàng" />
                                            <ext:ComboBox ID="ComboBox4" runat="server" Width="200" Editable="false" DataIndex="Title" />
                                        </Items>
                                    </ext:CompositeField>
                                    <ext:CompositeField ID="CompositeField3" FieldLabel="Hạn thanh toán" runat="server"
                                        MsgTarget="Under" AnchorHorizontal="-20">
                                        <Items>
                                            <ext:ComboBox ID="ComboBox5" runat="server" Width="200" Editable="false" DataIndex="Title" />
                                            <ext:DisplayField ID="DisplayField2" runat="server" Text="Tổng tiền" />
                                            <ext:TextField ID="txtBondNo" runat="server" Width="200" />
                                            <ext:Button ID="Button1" runat="server" Text="Tìm kiếm" Icon="Magnifier" FormBind="true">
                                                <DirectEvents>
                                                    <Click OnEvent="btnFind_Click" />
                                                </DirectEvents>
                                            </ext:Button>
                                        </Items>
                                    </ext:CompositeField>
                                </Items>
                            </ext:FieldSet>
                            <ext:GridPanel ID="GridPanel1" runat="server" AutoExpandColumn="objCustomer">
                                <Store>
                                    <ext:Store ID="Store1" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="obj_ID">
                                                <Fields>
                                                    <ext:RecordField Name="obj_ID" />
                                                    <ext:RecordField Name="objDateCreate" />
                                                    <ext:RecordField Name="objEmployee" />
                                                    <ext:RecordField Name="objCustomer" />
                                                    <ext:RecordField Name="objExWareHouse" />
                                                    <ext:RecordField Name="objTotal" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel1" runat="server">
                                    <Columns>
                                        <ext:Column ColumnID="obj_ID" DataIndex="obj_ID" Header="Số phiếu" />
                                        <ext:Column DataIndex="objDateCreate" Header="Ngày tạo" />
                                        <ext:Column DataIndex="objCustomer" Header="Nhà cung cấp" />
                                        <ext:Column DataIndex="objCustomer" Header="Nhân viên" />
                                        <ext:Column DataIndex="objExWareHouse" Header="Kỳ hạn thanh toán" />
                                        <ext:Column DataIndex="objTotal" Header="Tổng tiền" />
                                    </Columns>
                                </ColumnModel>
                                <BottomBar>
                                    <ext:PagingToolbar ID="PagingToolBar1" runat="server" PageSize="10" />
                                </BottomBar>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </North>
                <Center Split="true">
                    <ext:Panel ID="Panel3" runat="server" Layout="Fit">
                        <Items>
                            <ext:GridPanel ID="GridPanel2" runat="server" AutoExpandColumn="pro_Name" Border="false">
                                <Store>
                                    <ext:Store ID="Store2" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="pro_id">
                                                <Fields>
                                                    <ext:RecordField Name="pro_id" />
                                                    <ext:RecordField Name="pro_Name" />
                                                    <ext:RecordField Name="pro_Unit" />
                                                    <ext:RecordField Name="pro_Amount" />
                                                    <ext:RecordField Name="pro_Price" />
                                                    <ext:RecordField Name="pro_VAT" />
                                                    <ext:RecordField Name="pro_Acounting" />
                                                    <ext:RecordField Name="pro_Total" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel2" runat="server">
                                    <Columns>
                                        <ext:Column ColumnID="pro_id" DataIndex="pro_id" Header="Mã hàng" />
                                        <ext:Column DataIndex="pro_Name" Header="Tên hàng" />
                                        <ext:Column DataIndex="pro_Unit" Header="Đơn vị tính" />
                                        <ext:Column DataIndex="pro_Amount" Header="Số lượng" />
                                        <ext:Column DataIndex="pro_Price" Header="Đơn giá" />
                                        <ext:Column DataIndex="pro_VAT" Header="VAT" />
                                        <ext:Column DataIndex="pro_Acounting" Header="Chiết khấu" />
                                        <ext:Column DataIndex="pro_Total" Header="Thành tiền" />
                                    </Columns>
                                </ColumnModel>
                                <BottomBar>
                                    <ext:PagingToolbar ID="PagingToolBar2" runat="server" PageSize="10" />
                                </BottomBar>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
